package day2.test;

import day2.dao.IUserDao;
import day2.entity.User;
import org.junit.Test;
import util.Util;

import java.util.Arrays;

public class Demo1 {
    @Test
    public void demo1(){
        User u=new User();
        u.setName("tom");
        IUserDao dao= Util.getSession().getMapper(IUserDao.class);
        System.out.println(dao.selectByParam(u));

        u.setName("a");
        //System.out.println(dao.selectByLikeName(u));
        u.setName("tom");
        u.setPass("123");
        //System.out.println(dao.selectByParam2(u));

        //dao.updateByParam(u);

        //System.out.println(dao.selectByIds(Arrays.asList(1, 2, 3)));

    }
}
